﻿using System;


namespace Dixon.Jscp
{

    /// <summary>
    /// A base class for DiXon-JSCP engine exceptions
    /// </summary>
    public class EngineException : Exception
    {
        public EngineException(string format, params object[] arguments)
            : base(String.Format(format, arguments))
        {
        }

    }

    /// <summary>
    /// Thrown when a directory must that must be present in the system in order
    /// for the engine to run properly cannot be found
    /// </summary>
    public class RequiredDirectoryNotFoundException : EngineException
    {
        /// <summary>
        /// The path that should exist but doesn't
        /// </summary>
        public string Path { get; set; }
        public RequiredDirectoryNotFoundException(string path)
            : base(Messages.RequiredDirectoryNotFound, path) { }
    }
}